﻿<src:WpfConfiguration x:Class="ComputerMayhem.Wpf.UnreadEmailCountConfig"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:src="clr-namespace:MayhemWpf.UserControls;assembly=MayhemWpf"
             Width="400">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="90" />
            <ColumnDefinition Width="310" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <TextBlock HorizontalAlignment="Left" Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="0">Email Account:</TextBlock>
        <ComboBox SelectionChanged="EmailsComboBox_SelectionChanged" x:Name="EmailsComboBox" Grid.Column="1" Grid.Row="0" />
        <TextBlock HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1" TextWrapping="Wrap" FontSize="10">A Windows Live mail requires Windows Live Messenger to be started.</TextBlock>

        <TextBlock HorizontalAlignment="Left" Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="2">Unread emails:</TextBlock>
        <TextBox Name="EmailNumberBox" TextChanged="EmailNumberBox_TextChanged" Grid.Column="1" Grid.Row="2" />

        <TextBlock Style="{StaticResource ConfigErrorMessage}" Name="textInvalid" Grid.Column="1" Grid.Row="3">Number of unread emails is invalid</TextBlock>
    </Grid>
</src:WpfConfiguration>